package com.ruoyi.alert.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 原料水检测分类对象 td_raw_water_type
 */
public class TdRawWaterType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 原料水id */
    @Excel(name = "原料水id")
    private Long rawWaterId;

    /** 类型 原料表数据类型三种类型 */
    @Excel(name = "类型 原料表数据类型三种类型")
    private String type;

    /** PH值 */
    @Excel(name = "PH")
    private BigDecimal ph; // 修正：小写开头

    /** SS值 */
    @Excel(name = "SS")
    private BigDecimal ss; // 修正：小写开头

    /** 氨氮 */
    @Excel(name = "氨氮")
    private BigDecimal nh3n; // 修正：全小写（可保持 nh3N，但建议全小写）

    /** 总氮 */
    @Excel(name = "总氮")
    private BigDecimal tn; // 修正：小写开头

    /** COD */
    @Excel(name = "COD")
    private BigDecimal cod; // 修正：小写开头

    /** BOD */
    @Excel(name = "BOD")
    private BigDecimal bod; // 修正：小写开头

    /** 硫氰酸根 */
    @Excel(name = "硫氰酸根")
    private BigDecimal thiocyanate;

    /** 硫化物 */
    @Excel(name = "硫化物")
    private BigDecimal sulfide;

    /** 挥发酚 */
    @Excel(name = "挥发酚")
    private BigDecimal volatilePhenols;

    /** 碱度 */
    @Excel(name = "碱度")
    private BigDecimal alk; // 修正：小写开头

    /** 氯离子 */
    @Excel(name = "氯离子")
    private BigDecimal ci; // 修正：小写开头

    /** 石油类 */
    @Excel(name = "石油类")
    private BigDecimal petroleum;

    /** 苯 */
    @Excel(name = "苯")
    private BigDecimal benzene;

    /** 多环芳烃 */
    @Excel(name = "多环芳烃")
    private BigDecimal pah; // 修正：小写开头

    /** 苯并芘 */
    @Excel(name = "苯并芘")
    private BigDecimal bap; // 修正：小写开头

    /** 总氰 */
    @Excel(name = "总氰")
    private BigDecimal tc; // 修正：小写开头

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createUser;

    /** 更新人 */
    @Excel(name = "更新人")
    private Long updateUser;

    /** 删除标志 0代表未删除 */
    @Excel(name = "删除标志 0代表未删除")
    private Integer isDeleted;

    // 构造方法、getter/setter 方法
    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setRawWaterId(Long rawWaterId) {
        this.rawWaterId = rawWaterId;
    }

    public Long getRawWaterId() {
        return rawWaterId;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    // 修正：PH -> ph
    public void setPh(BigDecimal ph) {
        this.ph = ph;
    }

    public BigDecimal getPh() {
        return ph;
    }

    // 修正：SS -> ss
    public void setSs(BigDecimal ss) {
        this.ss = ss;
    }

    public BigDecimal getSs() {
        return ss;
    }

    // 修正：nh3N -> nh3n（或保持 nh3N，需与 MyBatis 一致）
    public void setNh3n(BigDecimal nh3n) {
        this.nh3n = nh3n;
    }

    public BigDecimal getNh3n() {
        return nh3n;
    }

    // 修正：TN -> tn
    public void setTn(BigDecimal tn) {
        this.tn = tn;
    }

    public BigDecimal getTn() {
        return tn;
    }

    // 修正：COD -> cod
    public void setCod(BigDecimal cod) {
        this.cod = cod;
    }

    public BigDecimal getCod() {
        return cod;
    }

    // 修正：BOD -> bod
    public void setBod(BigDecimal bod) {
        this.bod = bod;
    }

    public BigDecimal getBod() {
        return bod;
    }

    // 修正：ALK -> alk
    public void setAlk(BigDecimal alk) {
        this.alk = alk;
    }

    public BigDecimal getAlk() {
        return alk;
    }

    // 修正：CI -> ci
    public void setCi(BigDecimal ci) {
        this.ci = ci;
    }

    public BigDecimal getCi() {
        return ci;
    }

    // 修正：PAH -> pah
    public void setPah(BigDecimal pah) {
        this.pah = pah;
    }

    public BigDecimal getPah() {
        return pah;
    }

    // 修正：BaP -> bap
    public void setBap(BigDecimal bap) {
        this.bap = bap;
    }

    public BigDecimal getBap() {
        return bap;
    }

    // 修正：TC -> tc
    public void setTc(BigDecimal tc) {
        this.tc = tc;
    }

    public BigDecimal getTc() {
        return tc;
    }

    // 其他属性的 getter/setter 保持不变...
    public void setThiocyanate(BigDecimal thiocyanate) {
        this.thiocyanate = thiocyanate;
    }

    public BigDecimal getThiocyanate() {
        return thiocyanate;
    }

    public void setSulfide(BigDecimal sulfide) {
        this.sulfide = sulfide;
    }

    public BigDecimal getSulfide() {
        return sulfide;
    }

    public void setVolatilePhenols(BigDecimal volatilePhenols) {
        this.volatilePhenols = volatilePhenols;
    }

    public BigDecimal getVolatilePhenols() {
        return volatilePhenols;
    }

    public void setPetroleum(BigDecimal petroleum) {
        this.petroleum = petroleum;
    }

    public BigDecimal getPetroleum() {
        return petroleum;
    }

    public void setBenzene(BigDecimal benzene) {
        this.benzene = benzene;
    }

    public BigDecimal getBenzene() {
        return benzene;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("rawWaterId", getRawWaterId())
                .append("type", getType())
                .append("ph", getPh())       // 修正：PH -> ph
                .append("ss", getSs())       // 修正：SS -> ss
                .append("nh3n", getNh3n())   // 修正：nh3N -> nh3n
                .append("tn", getTn())       // 修正：TN -> tn
                .append("cod", getCod())     // 修正：COD -> cod
                .append("bod", getBod())     // 修正：BOD -> bod
                .append("thiocyanate", getThiocyanate())
                .append("sulfide", getSulfide())
                .append("volatilePhenols", getVolatilePhenols())
                .append("alk", getAlk())     // 修正：ALK -> alk
                .append("ci", getCi())       // 修正：CI -> ci
                .append("petroleum", getPetroleum())
                .append("benzene", getBenzene())
                .append("pah", getPah())     // 修正：PAH -> pah
                .append("bap", getBap())     // 修正：BaP -> bap
                .append("tc", getTc())       // 修正：TC -> tc
                .append("createUser", getCreateUser())
                .append("createTime", getCreateTime())
                .append("updateUser", getUpdateUser())
                .append("updateTime", getUpdateTime())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}